local skynet = require 'skynet'
require 'skynet.manager'

require 'nggs.base.const'
local log = require 'nggs.base.log'
local inspect = require 'nggs.base.inspect'

skynet.error('test3 started')

skynet.start(
    function()
        skynet.timeout(
            300,
            function()
                skynet.error('test3 end')
                skynet.sleep(0)
                skynet.abort()
            end
        )

        local tbl = {
            [1] = {101, 75},
            [2] = {201, 75},
            [3] = {301, 75}
        }

        -- log.Printf(inspect(tbl))
        for k, v in ipairs(tbl) do
            log.Printf('%s=%s', k, v)
        end

        local n = 29
        n = n ~ 7456
        log.Printf('n ~ 7456 = %d', n)

        assert(type({}) == 'table', 'not table')
    end
)
